package com.bwie.pojo;

import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexId;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.rely.FieldType;
import org.dromara.easyes.annotation.rely.IdType;

import java.math.BigDecimal;
import java.util.Date;

@Data
@IndexName("t_house")
public class HousePoEs {
    @IndexId(type = IdType.NONE)
    private Integer houseId;
    @IndexField(fieldType = FieldType.KEYWORD,analyzer = "ik_small_word")
    private String houseName;
    @IndexField(fieldType = FieldType.TEXT)
    private String houseCode;
    @IndexField(fieldType = FieldType.KEYWORD)
    private BigDecimal housePrice;
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer houseArea;
    @IndexField(fieldType = FieldType.DOUBLE)
    private BigDecimal sumPrice;
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer isBooking;
    @IndexField(fieldType = FieldType.DOUBLE)
    private BigDecimal myPrice;
    @IndexField(fieldType = FieldType.DATE)
    private Date createTime;
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer userId;
}
